package com.macro.mall.dao;

import com.macro.mall.model.UmsWithdrawalApply;
import com.macro.mall.model.UmsWithdrawalApplyExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UmsWithdrawalApplyDao {
    long countByExample(UmsWithdrawalApplyExample example);

    int deleteByExample(UmsWithdrawalApplyExample example);

    int deleteByPrimaryKey(Long id);

    int insert(UmsWithdrawalApply record);

    int insertSelective(UmsWithdrawalApply record);

    List<UmsWithdrawalApply> selectByExample(UmsWithdrawalApplyExample example);

    UmsWithdrawalApply selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") UmsWithdrawalApply record, @Param("example") UmsWithdrawalApplyExample example);

    int updateByExample(@Param("record") UmsWithdrawalApply record, @Param("example") UmsWithdrawalApplyExample example);

    int updateByPrimaryKeySelective(UmsWithdrawalApply record);

    int updateByPrimaryKey(UmsWithdrawalApply record);

    /**
     * 查询提现申请记录
     * @param storeId
     * @param value
     * @return
     */
    Integer selectWithdrawalApplyCount(@Param("storeId") Long storeId, @Param("value") int value);
}